package com.yidu.dao;

import java.util.List;
import java.util.Map;

import com.yidu.domain.Emp;

public interface EmpMapper {
    int deleteByPrimaryKey(String empId);

    int insert(Emp record);

    int insertSelective(Emp record);

    Emp selectByPrimaryKey(String empId);

    int updateByPrimaryKeySelective(Emp record);

    int updateByPrimaryKey(Emp record);
    
    /**
     * 查询行数
     * @param empName
     * @return
     */
    int findRowCount(String empName);
    
    int findAllRowCount(Map<String, Object> map);
    
    
    int findLogin(Map<String, Object> map);
    
    /**
     * 查询所有
     * @param map
     * @return
     */
    List<Emp> selectAll(Map<String, Object> map);
    
    List<Emp> selectAll2();
}